#include "Neuron.h"
SK

Neuron::Neuron (u32 numInputs)
{
	weights = new REAL [numInputs];

	for (u32 i=0; i<numInputs; i++)
	{
		//Set the random weigths
		weights[i] = (rand()%11-5)/10.0f;
	}

	REAL weightRange = 2.4f / numInputs;
	threshold = (rand() / RAND_MAX)*2.0f - 1.0f;
}

Neuron::~Neuron ()
{
	delete [] weights;

}

EK